package com.blb.service.admin;

import com.blb.pojo.ProductType;
import com.blb.pojo.Page;

import java.util.List;

public interface IProductTypeService {

    /**
     * 商品分类分页
     * @param page
     * @param size
     * @return
     */
    Page<ProductType> page(int page, int size) throws Exception;

    /**
     * 商品分类添加
     * @param productType
     */
    void add(ProductType productType) throws Exception;

    /**
     * 根据id删除
     * @param id
     */
    void deleteById(int id) throws Exception;

    /**
     * 批量删除
     * @param ids
     */
    void batchDelete(String[] ids) throws Exception;

    /**
     * 更具id获取用户数据
     * @param id
     * @return
     */
    ProductType getById(int id) throws Exception;

    /**
     * 商品分类修改
     * @param productType
     */
    void update(ProductType productType) throws Exception;

    /**
     *
     * @return
     * @throws Exception
     */
    public List<ProductType> all() throws Exception;
}
